// import { InjectionToken } from "@angular/core";
import { ErrorHandler } from '@angular/core';
import { IonicErrorHandler } from 'ionic-angular';
// import { Dialogs } from '@ionic-native/dialogs'; // native dialog
import { SplashScreen } from '@ionic-native/splash-screen';
// import { Camera } from '@ionic-native/camera'; // 摄像头
// import { QRScanner } from '@ionic-native/qr-scanner'; // 二维码
// import { Calendar } from '@ionic-native/calendar'; // native 日历
// import { PhotoLibrary } from '@ionic-native/photo-library'; // native 相册
import { StatusBar } from '@ionic-native/status-bar';

export const NATIVE_MODULES_PROVIDER = [
  // Dialogs,
  SplashScreen,
  // Camera,
  // QRScanner,
  // Calendar,
  // PhotoLibrary,
  StatusBar,
];

// export const IONIC_ERROR_HANDLER = new InjectionToken<string[]>('IONIC_ERROR_HANDLER');

export const IONIC_ERROR_HANDLER_PROVIDER = {
  provide: ErrorHandler,
  useClass: IonicErrorHandler
};
